package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Courses5Mapper;
import com.ruoyi.system.domain.Courses5;
import com.ruoyi.system.service.ICourses5Service;

/**
 * 课程表Service业务层处理
 * 
 * @author sunxu
 * @date 2025-02-14
 */
@Service
public class Courses5ServiceImpl implements ICourses5Service 
{
    @Autowired
    private Courses5Mapper courses5Mapper;

    /**
     * 查询课程表
     * 
     * @param courseId 课程表主键
     * @return 课程表
     */
    @Override
    public Courses5 selectCourses5ByCourseId(Long courseId)
    {
        return courses5Mapper.selectCourses5ByCourseId(courseId);
    }

    /**
     * 查询课程表列表
     * 
     * @param courses5 课程表
     * @return 课程表
     */
    @Override
    public List<Courses5> selectCourses5List(Courses5 courses5)
    {
        return courses5Mapper.selectCourses5List(courses5);
    }

    /**
     * 新增课程表
     * 
     * @param courses5 课程表
     * @return 结果
     */
    @Override
    public int insertCourses5(Courses5 courses5)
    {
        return courses5Mapper.insertCourses5(courses5);
    }

    /**
     * 修改课程表
     * 
     * @param courses5 课程表
     * @return 结果
     */
    @Override
    public int updateCourses5(Courses5 courses5)
    {
        return courses5Mapper.updateCourses5(courses5);
    }

    /**
     * 批量删除课程表
     * 
     * @param courseIds 需要删除的课程表主键
     * @return 结果
     */
    @Override
    public int deleteCourses5ByCourseIds(Long[] courseIds)
    {
        return courses5Mapper.deleteCourses5ByCourseIds(courseIds);
    }

    /**
     * 删除课程表信息
     * 
     * @param courseId 课程表主键
     * @return 结果
     */
    @Override
    public int deleteCourses5ByCourseId(Long courseId)
    {
        return courses5Mapper.deleteCourses5ByCourseId(courseId);
    }
}
